package com.canal.display.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 系统自定义属性
 * @author yangbo
 * @date 2020-06-23 16:22
 */
@Component
@ConfigurationProperties(prefix = "canal")
public class CanalProperties {

    /** 渠道商初始化密码 */
    private String buzPassword;

    /** token有效期 */
    private long tokenExpire;

    /** h5落地页域名 */
    private String h5Domain;

    public String getBuzPassword() {
        return buzPassword;
    }

    public void setBuzPassword(String buzPassword) {
        this.buzPassword = buzPassword;
    }

    public long getTokenExpire() {
        return tokenExpire;
    }

    public void setTokenExpire(long tokenExpire) {
        this.tokenExpire = tokenExpire;
    }

    public String getH5Domain() {
        return h5Domain;
    }

    public void setH5Domain(String h5Domain) {
        this.h5Domain = h5Domain;
    }

    public String getUrl(String uri) {
        return h5Domain + uri;
    }
}
